home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / Networking / SANA-II / slip_src / in_systm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-17  |  983 b   |  39 lines

  1. /*    @(#)in_systm.h 1.8 88/08/19 SMI; from UCB 7.1 6/5/86    */
  2.  
  3. /*
  4.  * Copyright (c) 1982, 1986 Regents of the University of California.
  5.  * All rights reserved.  The Berkeley software License Agreement
  6.  * specifies the terms and conditions for redistribution.
  7.  */
  8.  
  9. /*
  10.  * Miscellaneous internetwork
  11.  * definitions for kernel.
  12.  */
  13.  
  14. #ifndef _netinet_in_systm_h
  15. #define _netinet_in_systm_h
  16.  
  17. #ifndef LOCORE
  18. /*
  19.  * Network types.
  20.  *
  21.  * Internally the system keeps counters in the headers with the bytes
  22.  * swapped so that VAX instructions will work on them.  It reverses
  23.  * the bytes before transmission at each protocol level.  The n_ types
  24.  * represent the types with the bytes in ``high-ender'' order.
  25.  */
  26. typedef u_short n_short;        /* short as received from the net */
  27. typedef u_long    n_long;            /* long as received from the net */
  28.  
  29. typedef    u_long    n_time;            /* ms since 00:00 GMT, byte rev */
  30. #endif
  31.  
  32. #ifndef LOCORE
  33. #ifdef KERNEL
  34. n_time    iptime();
  35. #endif
  36. #endif
  37.  
  38. #endif /*!_netinet_in_systm_h*/
  39.